import { v4 as uuidv4 } from 'uuid'
// 要升级一个随机字符串
export const getUUID = () => {
    let uuid_token = localStorage.getItem('UUIDTOKEN')
    if (!uuid_token) {
        // 如果没有生成临时的
        uuid_token = uuidv4();
        localStorage.setItem('UUIDTOKEN', uuid_token)

    }
    return uuid_token
}